<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<?php
include '../class/TemplateClass.php';
include '../component/datagrid/XMLTableGridClass.php';
?>
<html>
    <head>
        <meta charset="UTF-8">

        <title>
            <?php
            TemplateClass::TITLE();
            ?>
        </title>
        <?php
        TemplateClass::LIB("../");
        XMLTableGridClass::LIB("../");
      $tbGrid = new XMLTableGridClass("teste", "Convênio", "http://api.convenios.gov.br/siconv/v1/consulta/convenios.xml");
        ?>





    </head>
    <body>
        <div class="navbar navbar-default">
            <div class="container">
                <?php
                TemplateClass::MENU_BAR("../");
                ?>


            </div>
        </div>
        <div class="container">
             <?php
             
             
            $tbGrid->addXMLTableColumnHead("Modalidade");
            $tbGrid->addXMLTableColumnHead("Órgão");
            $tbGrid->addXMLTableColumnHead("Justificativa");
            $tbGrid->addXMLTableColumnHead("Objeto");
            $tbGrid->addXMLTableColumnHead("Vigência");


            $tbGrid->addXMLTableColumn('/convenios/convenio/modalidade');
            $tbGrid->addXMLTableColumn('/convenios/convenio/orgao_concedente/Orgao');
            $tbGrid->addXMLTableColumn('/convenios/convenio/justificativa_resumida');
            $tbGrid->addXMLTableColumn('/convenios/convenio/objeto_resumido');
            $tbGrid->addXMLTableColumn('/convenios/convenio/data_fim_vigencia');

            $tbGrid->showXMLTable();
             
            ?>
           
        </div>


    </body>
</html>
